import 'package:flutter/cupertino.dart';
import '../util/dimens.dart';

class ToastWidget extends StatelessWidget {
  final String msg;

  const ToastWidget({Key key, this.msg}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: dip(20), vertical: dip(9)),
      decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(3),
          boxShadow: [
            BoxShadow(
                color: Color(0x5c3f3f3f),
                offset: Offset(0, dip(2)),
                blurRadius: dip(6))
          ],
          color: Color(0xff333333).withOpacity(0.9)),
      child: Text(
        msg,
        style: TextStyle(fontSize: dip(15), color: CupertinoColors.white),
      ),
    );
  }
}
